package org.dtrd.modules.common.entity.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class KeyValueBean implements java.io.Serializable {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 5428096320786618527L;
	
	private Integer id;
	private Integer parentId;
	private String name;
	private List<KeyValueBean> children;

	public KeyValueBean(Integer id, String name) {
		this.id = id;
		this.name = name;
	}
}
